﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/Layouts/Admin.Master" AutoEventWireup="true"
    CodeBehind="DeepnesBonusConfig.aspx.cs" Inherits="MLM.AdminCP.Pages.DeepnesBonusConfig" meta:resourcekey="PageResource1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <telerik:RadGrid ID="RadDeepnesBonusConfigsGrid" runat="server" AllowFilteringByColumn="True"
        DataSourceID="DeepnesBonusConfigEds" AllowPaging="True" AllowSorting="True" GridLines="None"
        ShowGroupPanel="True"  AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
        AllowAutomaticDeletes="True" ShowFooter="True" ShowStatusBar="True" meta:resourcekey="RadDeepnesBonusConfigsGridResource1">
        <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True">
            <Selecting AllowRowSelect="True" />
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        </ClientSettings>
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="DeepnesBonusConfigEds"
            ShowHeader="true" ShowHeadersWhenNoRecords="true" AllowAutomaticInserts="true"
            CommandItemDisplay="TopAndBottom">
            <CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="true">
                <%--ExportToPdfText="Export to Pdf">--%></CommandItemSettings>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="Id" DataType="System.Int64" HeaderText="ID" ReadOnly="True"
                    SortExpression="Id" UniqueName="Id" Visible="true" meta:resourcekey="ID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Rank.Name" HeaderText="Rank" SortExpression="Rank.Name"
                    UniqueName="Rank.Name" meta:resourcekey="Name" ReadOnly="true">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="NumberOfRankRequire" HeaderText="Number Of Rank Require"
                    SortExpression="NumberOfRankRequire" UniqueName="NumberOfRankRequire" ReadOnly="true"
                    meta:resourcekey="NumberOfRankRequire">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Name" HeaderText="Name"
                    SortExpression="Name" UniqueName="Name" meta:resourcekey="Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Bonus" HeaderText="Bonus (%)" SortExpression="Bonus"
                    UniqueName="Bonus" meta:resourcekey="Bonus">
                </telerik:GridBoundColumn>
                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                    meta:resourcekey="GridEditCommandColumnResource1">
                    <ItemStyle CssClass="MyImageButton"></ItemStyle>
                </telerik:GridEditCommandColumn>
                <telerik:GridButtonColumn ConfirmText="Delete this?" ConfirmDialogType="RadWindow"
                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                    UniqueName="DeleteColumn" meta:resourcekey="GridButtonColumnResource1">
                    <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton"></ItemStyle>
                </telerik:GridButtonColumn>
            </Columns>
            <EditFormSettings EditFormType="Template">
                <EditColumn UniqueName="EditCommandColumn1">
                </EditColumn>
                <FormTemplate>
                    <table id="Table2" style="border-collapse: collapse; padding-left: 20">
                        <tr style="height: 30px">
                            <td class="titlename">
                                <asp:Label ID="Label122" runat="server" Text="Rank" CssClass="MLMLabel" meta:resourcekey="LabelName222Resource1"></asp:Label>
                            </td>
                            <td style="width: 30">
                                <telerik:RadComboBox CssClass="rancombox" runat="server" ID="RadComboBox2" DataTextField="Name"
                                    DataValueField="RankID" DataSourceID="GroupRankEds" SelectedValue='<%# Bind("RankRequire") %>'
                                    EnableLoadOnDemand="True" meta:resourcekey="RadComboBox2Resource1">
                                    <HeaderTemplate>
                                        <ul>
                                            <li style="list-style-type: none" class="col1">
                                                <asp:Label ID="Label222" runat="server" Text="Rank" CssClass="MLMLabel" meta:resourcekey="Labelasasa"></asp:Label></li>
                                        </ul>
                                    </HeaderTemplate>
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                        <tr style="height: 30px">
                            <td class="titlename">
                                <asp:Label ID="LabelName2" runat="server" Text="Number Of Rank Require" CssClass="MLMLabel"
                                    meta:resourcekey="SelectRank32323"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadTextBox CssClass="radtextbox" ID="RadTextBox1" runat="server" Text='<%# Bind("NumberOfRankRequire") %>'
                                    LabelCssClass="" meta:resourcekey="RadTextBox1Resource1">
                                </telerik:RadTextBox>
                            </td>
                            <td class="titlename">
                                <asp:Label ID="Label1" runat="server" Text="Name" CssClass="MLMLabel" meta:resourcekey="LabelName22Resource1"></asp:Label>
                            </td>
                            <td style="width: 50">
                                <telerik:RadTextBox CssClass="radtextbox" ID="RadTextBox2" runat="server" Text='<%# Bind("Name") %>'
                                    LabelCssClass="" meta:resourcekey="RadTextBox2Resource1">
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Bonus" CssClass="MLMLabel" meta:resourcekey="LabelName22Resource1sas"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadTextBox CssClass="radtextbox" ID="RadTextBox3" runat="server" Text='<%# Bind("Bonus") %>'
                                    LabelCssClass="" meta:resourcekey="RadTextBox2Resource1">
                                </telerik:RadTextBox>%
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td style="padding-bottom: 10; padding-top: 10" colspan="2">
                                <asp:Button ID="btnUpdate" Text='Save' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                    meta:resourcekey="btnUpdateResource111"></asp:Button>&nbsp;
                                <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                    CommandName="Cancel" meta:resourcekey="btnCancelResource1"></asp:Button>
                            </td>
                        </tr>
                    </table>
                </FormTemplate>
            </EditFormSettings>
        </MasterTableView>
        <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Office2007">
        </HeaderContextMenu>
    </telerik:RadGrid>
    <asp:EntityDataSource ID="DeepnesBonusConfigEds" runat="server" ConnectionString="name=MLMDataContext"
        DefaultContainerName="MLMDataContext" EnableDelete="True" EnableFlattening="False"
        EnableInsert="True" EnableUpdate="True" 
        EntitySetName="DeepnesBonusConfigs" Include="Rank" EntityTypeFilter="" 
        Select="">
    </asp:EntityDataSource>
    <asp:EntityDataSource ID="GroupRankEds" runat="server" ConnectionString="name=MLMDataContext"
        DefaultContainerName="MLMDataContext" EnableFlattening="False" EntitySetName="Ranks"
        EntityTypeFilter="Rank">
    </asp:EntityDataSource>
    <h3>
        Example</h3>
    <p>
        • Diamond Bonus = 2% Will be paid above 4 „Sales Heads“ in your first line. The
        Diamond Bonus will count for the group sales from the second generation to the next
        „Sales Manager“ who also gets the Diamond Bonus.<br />
        • Double Diamond Bonus = 0.5% Will be paid above 7 „Sales Heads“ in your first line.
        The Double Diamond Bonus will count for the group sales from the second generation
        to the next „Sales Manager“ who also gets the Double Diamond Bonus. The double diamond
        bonus is paid additional to the diamond bonus.<br />
        • Triple Diamond Bonus = 0,5% Will be paid above 10 „Sales Heads“ in your first
        line. The Diamond Bonus will count for the group sales from the second generation
        to the next „Sales Manager“ who also gets the Triple Diamond Bonus. The triple diamond
        bonus is paid additional to the double diamond bonus and diamond bonus.<br />
    </p>
</asp:Content>
